<style type="text/css">
#winBodyContainer{
	overflow-y: scroll;
	height: 480px;
	padding:0px;
	padding-bottom: 50px;
}
</style>
<form action="__SELF__" method="post">
<div style="width:600px;">
	<div class="form_data">
		<div class="mod_name">
			<span class="name">信息</span>
		</div>
		<div class="mod_data">
			<div class="name">证件照片</div>
			<div class="input_data">
				<a href="{:D('File')->get_path($info['identification_id'])}" class="noneAjax view_big_pic">
					<img src="{:D('File')->get_path($info['identification_id'], '120', '120')}" width="120" height="120" alt="">
				</a>
			</div>
		</div>
		<div class="mod_data">
			<div class="name">执业证号</div>
			<div class="input_data">
				{$info['practice_no']}
			</div>
		</div>
		<div class="mod_data">
			<div class="name">工作单位</div>
			<div class="input_data">
				{$info['work_unit']}
			</div>
		</div>
		<div class="mod_data">
			<div class="name">擅长领域</div>
			<div class="input_data">
				{:D('Category')->get_name($info['skilled_id'])}
			</div>
		</div>

		<notempty name="audit_reasons">
		<div class="mod_name">
			<span class="name">审核记录</span>
		</div>
		<div class="data_list">
			<table>
				<tr>
					<th>审核人</th>
					<th>时间</th>
					<th>状态</th>
					<th width="300">原因</th>
				</tr>
				<volist name="audit_reasons" id="rs">
				<tr>
					<td>{:D('User')->get_admin_name($rs['admin_id'])}</td>
					<td>{:date('Y-m-d H:i:s', $rs['create_time'])}</td>
					<td>
						<eq name="rs.status" value="1">通过</eq>
						<eq name="rs.status" value="2">未通过</eq>
					</td>
					<td>
						{$rs['content']}
					</td>
				</tr>
				</volist>
			</table>
		</div>
		</notempty>
		
		<div class="mod_name">
			<span class="name">审核</span>
		</div>
		<div class="mod_data">
			<div class="name">审核状态</div>
			<div class="input_data">
				<label><input class="radio" type="radio" name="status" checked value="1">通过</label>
				<label><input class="radio" type="radio" name="status" value="2">不通过</label>
			</div>
		</div>

		<div class="mod_data reason" style="display: none">
			<div class="name">不通过原因</div>
			<div class="input_data">
				<textarea name="content" style="width:350px;height:100px;" datatype="*"></textarea>
			</div>
		</div>
	</div>
</div>
<div class="win-opt-box">
	<button type="submit" class="btn btn-save">提交</button>
	<span class="btn btn-cancel removeWin">取消</span>
</div>
</form>
<script type="text/javascript">
$(document).ready(function(){
	$('#winBodyContainer input[name="status"]').click(function () {
		status = $(this).val();
		if(status == 2){
			$('#winBodyContainer .reason').show();
		}else{
			$('#winBodyContainer .reason').hide();
		}
	});
	$("#winBodyContainer form input[type='submit']").click(function () {
		status  = $('#winBodyContainer input[name="status"]:checked').val();
		content = $('#winBodyContainer textarea').val();
		if(status == 2 && !content){
			msgbox('请填写不通过理由！','warn');
			$('#winBodyContainer textarea').focus();
			return false;
		}
	});
	//处理回车自动提交表单问题
	$("#winBodyContainer form").submit(function () {
		return false;
	});
});
</script>